package com.wcar.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcar.common.entity.Menu;
import com.wcar.common.entity.Role;
import com.wcar.common.vo.Result;

import java.util.ArrayList;
import java.util.List;


/**
 * @program: four-wcar-idea
 * @description:
 * @author: 吴朝阳
 * @create: 2024-05-28 09:43
 **/
public interface RoleService {

    Result<IPage<Role>> getRole(Integer currentPage, Integer pageSize, Role role);



    Result<Role> addRole(String username, Role role);

    Result<Role> updateRole(String username, Role role);

    Result<Role> deleteRole(Integer roleId);

    Result<List<Role>> selectRole(Integer userId);

    Result<Role> updateRoles(Integer userId, List<Integer> role);

    Result<List<Integer>> selectRoleMenus(Integer roleId);

    Result<Integer> update(Integer roleId, ArrayList<Integer> menuIds);
}
